package  br.ufrn.agraphs.jcml;
import  java.io.*;
import  java.util.*;
public class AndExpressionNodeJCML extends  jcmlNode{

private  jcmlRef edgeNodeEqualityExpression ;

 private  jcmlRef hyperEdNodeEqualityExpression ;

 public  AndExpressionNodeJCML ( ) {
  aKind=  jcmlKind.jcmlAndExpressionNode;
}

 public void jcmlMakeAndExpressionNode (  jcmlNode pedgeNodeEqualityExpression ,  jcmlNode phyperEdNodeEqualityExpression ,  jcmlNode root ,  Environment nenv ) {
if ( root!= null ) {
if ( root.jcmlGetKind() !=  jcmlKind.jcmlCompilationUnit) {
 System.err.println("JLibjcml error >> jcmlMakeAndExpressionNode called with erroneous parameter\n" ) ;
 System.exit(0 ) ;
}
}

 else {
 System.err.println("Jlibjcml error >> jcmlMakeAndExpressionNode called with null value" ) ;
 System.exit(0 ) ;
}
 nRoot=  root.jcmlNode2Ref() ;
if ( pedgeNodeEqualityExpression== null )  edgeNodeEqualityExpression= new  jcmlRef( - 1 , 0 ) ;

 else  edgeNodeEqualityExpression=  pedgeNodeEqualityExpression.jcmlNode2Ref() ;
if ( phyperEdNodeEqualityExpression== null )  hyperEdNodeEqualityExpression= new  jcmlRef( - 1 , 0 ) ;

 else  hyperEdNodeEqualityExpression=  phyperEdNodeEqualityExpression.jcmlNode2Ref() ;
 env=  nenv;
 env.jcmlNodeNew( this,  root) ;

}

 public  jcmlNode jcmlGetedgeNodeEqualityExpression ( ) {
return  env.jcmlRef2Node( edgeNodeEqualityExpression) ;

}

 public  jcmlNode jcmlGethyperEdNodeEqualityExpression ( ) {
return  env.jcmlRef2Node( hyperEdNodeEqualityExpression) ;

}

 public void jcmlSetedgeNodeEqualityExpression (  jcmlNode pedgeNodeEqualityExpression ) {
if ( pedgeNodeEqualityExpression== null ) {
 System.err.println("Jlibjcml error >> jcmlSetedgeNodeEqualityExpression called with null value.\n" ) ;
 System.exit(1 ) ;
}
if ( pedgeNodeEqualityExpression.jcmlGetKind() !=  jcmlKind.jcmlEqualityExpressionNode) {
 System.err.println("Jlibjcml error>> jcmlSetedgeNodeEqualityExpression called with erroneous parameter\n" ) ;
 System.exit(1 ) ;
}
 edgeNodeEqualityExpression=  pedgeNodeEqualityExpression.jcmlNode2Ref() ;

}

 public void jcmlSethyperEdNodeEqualityExpression (  jcmlNode phyperEdNodeEqualityExpression ) {
if ( phyperEdNodeEqualityExpression== null ) {
 System.err.println("Jlibjcml error >> jcmlSethyperEdNodeEqualityExpression called with null value.\n" ) ;
 System.exit(1 ) ;
}
if ( phyperEdNodeEqualityExpression.jcmlGetKind() !=  jcmlKind.jcmlEqualityExpressionList) {
 System.err.println("Jlibjcml error >> jcmlSethyperEdNodeEqualityExpression called with erroneous parameter\n" ) ;
 System.exit(1 ) ;
}
 hyperEdNodeEqualityExpression=  phyperEdNodeEqualityExpression.jcmlNode2Ref() ;

}

 public void jcmlReadNode (  String [] values ,  Environment nenv ,  jcmlNode root ) {
if ( nenv== null ) {
 System.err.println("Jlibjcml error >> jcmlReadNode called with null value" ) ;
 System.exit(1 ) ;
}
 env=  nenv;
 env.jcmlNodeNew( this,  root) ;
 edgeNodeEqualityExpression= new  jcmlRef( Integer.parseInt( values[1 ]) ,  Integer.parseInt( values[2 ]) ) ;
 hyperEdNodeEqualityExpression= new  jcmlRef( Integer.parseInt( values[3 ]) ,  Integer.parseInt( values[4 ]) ) ;

}

 public void jcmlWriteNode (  PrintWriter outstream ) {
 jcmlRefWrite( edgeNodeEqualityExpression,  outstream) ;
 jcmlRefWrite( hyperEdNodeEqualityExpression,  outstream) ;

}

 public void jcmlTranslateNode (  Vector translationTable ) {
 nRoot.jcmlTranslateRef( translationTable) ;
 edgeNodeEqualityExpression.jcmlTranslateRef( translationTable) ;
 hyperEdNodeEqualityExpression.jcmlTranslateRef( translationTable) ;

}

 
}



